package com.houtai.bean.dto.article.comments;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@ApiModel(value="文章评论所需参数", description="文章评论所需参数")
public class TsArticleCommentsInsertDto {
    @NotNull(message = "评论id不能为空")
    @ApiModelProperty(value="评论id（回复时传对应id不是回复传0）", name="comments_id")
    private int comments_id;
    @NotEmpty(message = "评论内容不能为空")
    @Length(max = 100, message = "评论内容最多100个字符")
    @ApiModelProperty(value="评论内容 最多100个字符", name="comments_content")
    private String comments_content;

    @NotNull(message = "文章id不能为空")
    @ApiModelProperty(value="文章id", name="article_id")
    private int article_id;

    public int getComments_id() {
        return comments_id;
    }

    public void setComments_id(int comments_id) {
        this.comments_id = comments_id;
    }

    public String getComments_content() {
        return comments_content;
    }

    public void setComments_content(String comments_content) {
        this.comments_content = comments_content;
    }

    public int getArticle_id() {
        return article_id;
    }

    public void setArticle_id(int article_id) {
        this.article_id = article_id;
    }
}
